package com.example.back.Repository;

import com.example.back.Entity.Talker;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TalkerRepository extends JpaRepository<Talker,Long> {
    List<Talker> findAllByUserId(long uId);
    Talker findTalkerByTalkerId(long talkerId);
    List<Talker> findAllByOtherId(long otherId);
    Talker findTalkerByUserIdAndAndOtherId(long uId,long oId);
}
